<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<link rel="stylesheet" href="element-ui/lib/theme-chalk/index.css">
<script src="js/vue.js"></script>
<script src="element-ui/lib/index.js"></script>
<script src="js/axios-0.18.0.js"></script>
<body>
    <div id="mydiv">
        <template>
            <el-popconfirm
                    @onConfirm="demo"
                    confirm-button-text='好的'
                    cancel-button-text='不用了'
                    icon="el-icon-info"
                    icon-color="red"
                    title="这是一段内容确定删除吗？"
            >
                <el-button   slot="reference">删除</el-button>
            </el-popconfirm>
        </template>
    </div>
</body>
<script>

    new Vue({
        el:"#mydiv",
        methods:{
            demo:function () {
                console.log("aaaaaa")
            }
        }
    });

</script>
</html>